package util;

import java.util.ArrayList;
import java.util.List;

public class DelayHandler {
    private int total = 0;

    public static DelayHandler newHandler() {
        return new DelayHandler();
    }

    public DelayHandler delay(Runnable runnable, int delayMillis) {
        total += delayMillis;
        new DefaultHandler().postDelayed(runnable, total);
        return this;
    }
}
